package com.hsb.eshop.common;

import lombok.Data;

import java.io.Serializable;

@Data
public class Page implements Serializable {
    private Integer pageSize; // 页面大小
    private Integer currentPage;// 当前页
    private Integer startIoc;// 当前页的起始位置
    private Integer total; //总数据数

    public Page(Integer currentPage,Integer pageSize) {
        this.pageSize = pageSize;
        this.currentPage = currentPage;
        this.startIoc = (currentPage-1)*pageSize;
    }
}
